export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "序号",
      prop: "id",
      hide: true,
      editDisabled: true,
      editDisplay: false,
      addDisplay: false,
    },
    {
      label: "会员卡号",
      prop: "cardNo",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "会员注册日期",
      prop: "createTime",
      type: "datetime",
      disabled: true,
      addDisplay: false,
      format: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "会员手机号",
      prop: "mobile",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "会员注册类型",
      prop: "registerType",
      type: "radio",
      dicData: [{
        label: '正常注册',
        value: 0
      }, {
        label: 'MIS原有会员补充注册',
        value: 1
      }],
      rules: [{
        required: true,
        message: '请选择注册类型',
        trigger: 'blur'
      }],
      value: 0,
      span: 12
    },
    {
      label: "会员类型",
      prop: "vipType",
      type: "radio",
      dicData: [{
        label: '老会员',
        value: 'O'
      }, {
        label: 'MIS新会员原有会员补充注册',
        value: 'N'
      }],
      rules: [{
        required: true,
        message: '请选择会员类型',
        trigger: 'blur'
      }],
      value: 'N',
      span: 12
    },
    {
      label: "门店",
      prop: "erpStore",
      type: "select",
      search: true,
      dicUrl: `/admin/mall/store/list`,
      props: {
        label: 'storeName',
        value: 'storeNo'
      },
      formatter: (val, value, label) => {
        return `${label}(${value})`
      },
      rules: [
        {
          required: true,
          message: '请选择广告位置编码',
          trigger: 'blur'
        }
      ],
      span: 12
    }
  ]
}
